package live.api.impl;

import java.sql.SQLException;
import java.util.Map;

import live.common.DBHelper;
import live.common.Format;
/**
 * 机票预订请求、回复信息记录
 * 2011-05-11
 */
public class FlightReqRes {
	private static DBHelper dh;
	static Format format = Format.getInstance();
	//发送请求信息
	public static void insertSendRequest(Map<String, String> map){
		dh = DBHelper.getInstance();
		String sql = "{call addPlaneReqRes(?,?,?)}";
		Object[] args = new Object[3];
		try {
			args[0]=map.get("service_id");
			args[1]=map.get("requestData");
			args[2]=map.get("resData");
			dh.update(sql, args);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		dh.close();
	}
	
}
